package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("业务员提交用户证件信息")
@Data
public class ClerkSubmitUserCertAction extends ClerkBaseAction {

    public ClerkSubmitUserCertAction() {
        super.setOrderAction(ClerkOrderActionEnum.SUBMIT_USER_CERT);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("身份证号码")
//    @Pattern(regexp="(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)", message = "请输入正确的身份证号码")
    private String idCardNo;

    @ApiModelProperty("身份证正面照片")
    private String idCardFront;

    @ApiModelProperty("身份证反面照片")
    private String idCardBack;

    @ApiModelProperty("订单类型1:回收2:家电3:奢侈品")
    private Integer bizType;

}
